<?php
class ConsumptionViewModel extends ViewModel {
	public $viewFields = array(
		'Consumption'=>array('id', 'member_id', 'add_time', 'name', 'amount', 'status', 'status_message', '_type'=>'LEFT'),
		'Member'=>array('username', '_on'=>'Consumption.member_id=Member.id'),
	);
}